import arcpy
import numpy

outFC = "d:/Workspace/datas/geodata.gdb/point"
outline = "d:/Workspace/datas/geodata.gdb/line"
# Create a numpy array with an id field, and a field with a tuple 
#  of x,y coordinates
#
array = numpy.array([(1, (471316.3835861763, 5000448.782036674),),
                     (2, (470402.49348005146, 5000049.216449278),'1'),
                     (3, (471408.49348005146, 5000050.916449278),'2'),
                     (4, (472108.49348005146, 5000051.916449278),'2')],
                    numpy.dtype([('idfield',numpy.int32),('XY',numpy.double, 2),('MEASURE','|S256')]))

# Define a spatial reference for the output feature class
#
SR = 'd:/WorkSpace/datas//CGCS2000_3_Degree_GK_CM_114E.prj'

# Export the numpy array to a feature class using the XY field to
#  represent the output point feature
#
arcpy.da.NumPyArrayToFeatureClass(array, outFC, ['XY'], SR)
arcpy.PointsToLine_management(outFC,outline,'MEASURE')